import request from '@/utils/request'

// 查询语言包列表
export function listLang(query) {
  return request({
    url: '/video/lang/list',
    method: 'get',
    params: query
  })
}

// 查询语言包详细
export function getLang(id) {
  return request({
    url: '/video/lang/' + id,
    method: 'get'
  })
}

// 新增语言包
export function addLang(data) {
  return request({
    url: '/video/lang',
    method: 'post',
    data: data
  })
}

// 修改语言包
export function updateLang(data) {
  return request({
    url: '/video/lang',
    method: 'put',
    data: data
  })
}

// 删除语言包
export function delLang(id) {
  return request({
    url: '/video/lang/' + id,
    method: 'delete'
  })
}

// 查询语言包列表
export function getListLang(query) {
  return request({
    url: '/video/lang/getList',
    method: 'get',
    params: query
  })
}
